/*
package demo2;


public class Test {
    public void test() {
        class Inner {
            public int a = 1;
            public int b = 2;

            public void method() {
                System.out.println("method()");
            }

            Inner inner = new Inner();
        //inner.method();
        }
    }

    public static void main(String[] args) {
        //OutClass.InnerClass Inner = new OutClass.InnerClass();
        //实例化1
        OutClass outClass = new OutClass();
        OutClass.InnerClass Inner1 = outClass.new InnerClass();
        OutClass.InnerClass Inner2 = outClass.new InnerClass();
        //实例化2
        OutClass.InnerClass Inner3 = new OutClass().new InnerClass();
        Inner1.Test();
        Inner2.Test();
        Inner3.Test();
        outClass.func();
    }


}
*/
